/** \file TypeInfo.cc
 * Definitions for the class TypeInfo.
 *
 * (c) Copyright  Semih Cemiloglu
 * All rights reserved, see COPYRIGHT file for details.
 *
 * $Id: TypeInfo.cc 119 2006-06-21 04:57:25Z semihc $
 *
 *
 */

#include "TypeInfo.hh"
#include "DBC.hpp"

using namespace std;
using namespace TC;


TC_IDENT("$Id$");

    

bool TypeInfo::before(const TypeInfo& rhs) const
{
  TC_PRE_CONDITION(m_info);
  // type_info::before return type is int in some VC libraries 
  return m_info->before(*rhs.m_info) != 0;
}


const std::type_info& TypeInfo::getInfo() const
{
  TC_PRE_CONDITION(m_info);
  return *m_info;
}

    
const char* TypeInfo::name() const
{
  TC_PRE_CONDITION(m_info);
  return m_info->name();
}


// Include non-inline function definitions
#ifndef TC_USE_INLINE
# include "TypeInfo.inl"
#endif

